package com.mijie.homi.service.common;

import java.util.List;

import com.mijie.exception.PermissionDeniedException;
import com.mijie.exception.RecordNotFoundException;
import com.mijie.homi.domain.commom.Review;

public interface EventService {

	public abstract int getOwner(long eventId) throws RecordNotFoundException;
	
	public Review getReview(int id) throws RecordNotFoundException;
	
	public int newReview(Review review) throws RecordNotFoundException;
	
	public int deleteReview(long eventId,int id,int operator) 
			throws RecordNotFoundException,PermissionDeniedException;
	
	public abstract List<Review> listReview(long eventId,int offset,int limit);
}
